import request from '@/utils/request'

// 获取会员列表
export function listMember(query) {
  return request({
    url: '/ord/member/list',
    method: 'get',
    params: query
  })
}

// 获取会员列表
export function listMemberDetails(query) {
  return request({
    url: '/ord/member/getPage',
    method: 'get',
    params: query
  })
}
// 保存会员
export function setMember(data) {
  return request({
    url: '/ord/member/save',
    method: 'post',
    data
  })
}

//删除会员
export function delMember(ids) {
  return request({
    url: '/ord/member/delete/' + ids,
    method: 'post'
  })
}

// 获取权益节点列表
export function listEquityTable(query) {
  return request({
    url: '/ord/equity/table',
    method: 'get',
    params: query
  })
}

// 获取权益节点列表
export function listEquityNode(query) {
  return request({
    url: '/ord/equity/node',
    method: 'get',
    params: query
  })
}

// 获取权益树形列表
export function listEquity(query) {
  return request({
    url: '/ord/equity/list',
    method: 'get',
    params: query
  })
}

//下移权益{id}
export function downEquity(query) {
  return request({
    url: '/ord/equity/down/',
    method: 'get',
    params: query
  })
}

// 保存权益内容信息
export function setEquity(data) {
  return request({
    url: '/ord/equity/save',
    method: 'post',
    data
  })
}

// 保存权益内容信息
export function setEquityTable(data) {
  return request({
    url: '/ord/equity/update/table',
    method: 'post',
    data
  })
}

//删除权益内容信息
export function delEquity(ids) {
  return request({
    url: '/ord/equity/delete/' + ids,
    method: 'post'
  })
}
